using System;

namespace Netduino4Fun.WebServer.Test.Helper
{
	public static class StringExt
	{
		public static uint ToUint(this string s)
		{
			uint rep = 0;
			try
			{
				var tmps = s.Split('.');
				rep = uint.Parse(tmps[0]);
			}
			catch (Exception)
			{
			}
			return rep;
		}
	}
}
